CString::operator <<, >>

friend CArchive& operator <<( CArchive& ar, const CString& string );
  throw( CArchiveException );
friend CArchive& operator >>( CArchive& ar, CString& string );
  throw( CArchiveException );
friend CDumpContext& operator <<( CDumpContext& dc, const CString& string );

说明:
CString插入操作符(<<)支持向一个存档进行诊断转储和存储。提取操作符支持从一个文档中进行装入。
CDumpContext操作符只有在Microsoft基础类库的调试版中才有效。

示例:
下面的例子说明了如何使用CString::operator <<, >>。
// CString::operator <<, >>示例:
extern CArchive ar;
CString s( "abc" );
#ifdef _DEBUG
  afxDump << s; // Prints the value (abc)
  afxDump << &s; // Prints the address
#endif
if( ar.IsLoading() ) ar >> s;
else ar << s;

请参阅:CDumpContext